export const tableConfig = {
    headerOperation: [
        {
            type: 'create',
            visible: true,
            permission: ['*'],
            className: '',
            name: '新增',
            button: 'button',
            radioGroup: []
        },
        {
            type: 'sync',
            visible: true,
            permission: ['POST:/api/system/manage/clues/sync'],
            className: '',
            name: '同步',
            button: 'button',
            radioGroup: []
        },
        {
            type: 'batch',
            visible: true,
            permission: ['POST:/api/system/manage/clues/assign-follower'],
            className: '',
            name: '批量分配',
            button: 'button',
            radioGroup: []
        },
        {
            type: 'download',
            visible: true,
            permission: ['GET:/api/system/manage/clues/export'],
            className: '',
            name: '线索导出',
            button: 'button',
            radioGroup: []
        },
        {
            type: 'download-template',
            visible: true,
            permission: ['POST:/api/system/manage/clues/importExcelList'],
            className: '',
            name: '模板下载',
            button: 'button',
            radioGroup: []
        },
        {
            type: 'import',
            visible: true,
            permission: ['POST:/api/system/manage/clues/importExcelList'],
            className: '',
            name: '批量导入',
            button: 'file',
            radioGroup: []
        }
    ],
    search: [
        {
            key: 'time',
            type: 'datetimerange',
            name: '创建时间',
            modelValue: ''
        },
        {
            key: 'phone',
            type: 'text',
            name: '手机号码',
            modelValue: ''
        },
        {
            key: 'customerName',
            type: 'text',
            name: '姓名',
            modelValue: ''
        },
        {
            key: 'followStatus',
            type: 'select',
            name: '跟进状态',
            modelValue: '',
            options: []
        },
        {
            key: 'dataSource',
            type: 'select-multiple',
            name: '数据来源',
            modelValue: '',
            options: []
        },
        {
            key: 'referrer',
            type: 'text',
            name: '分销人员',
            modelValue: ''
        },
        {
            key: 'customerType',
            type: 'select',
            name: '客户类型',
            modelValue: '0',
            options: []
        },
        {
            key: 'followerAssignStatus',
            type: 'select',
            name: '分配状态',
            modelValue: '',
            options: []
        },
        {
            key: 'transactionChannel',
            type: 'select',
            name: '成交渠道',
            modelValue: '',
            options: <any[]>[]
        }
    ],
    permission: ['GET:/api/system/manage/clues'],
    table: {
        operationWidth: '120px',
        operation: [
            {
                type: 'detail',
                visible: true,
                permission: ['*'],
                className: 'edit',
                name: '详情'
            },
            {
                type: 'edit',
                visible: true,
                permission: [
                    'POST:/api/system/manage/clues/edit-follow-up',
                    'GET:/api/system/manage/clues/list-follow-up'
                ],
                className: 'edit',
                name: '跟进'
            }
        ],
        propName: {
            phone: '手机号码',
            customerName: '客户姓名',
            viewedClassName: '查看班别',
            area: '所在区域',
            followerAssignStatus: '分配状态',
            customerType: '客户类型',
            dataSource: '数据来源',
            referrerStr: '分销人员',
            lastViewedTime: '最后访问时间',
            followStatus: '跟进状态',
            follower: '跟进人',
            lastFollowMsg: '最后跟进信息',
            signupOrderNo: '订单编号',
            transactionChannel: '成交渠道'
        },
        fixed: ['phone'],
        expandPropName: {},
        showSummary: false,
        selection: true,
        expand: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: [],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
